//
//  LinKController.m
//  HandheldHospital
//
//  Created by 张鹏的电脑 on 16/3/1.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "LinKController.h"
#import "LinkCell.h"
#import "LinkMenController.h"

@interface LinKController ()

@end

@implementation LinKController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    //隐藏tabBar
    self.tabBarController.tabBar.hidden = YES;
    //注册 cell
    [self.tableView registerNib:[UINib nibWithNibName:@"LinkCell" bundle:nil] forCellReuseIdentifier:@"cell"];
    
    
    
}





#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
#warning Incomplete implementation, return the number of rows
    return 1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 77;
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    LinkCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    
    
    
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    LinkMenController *linkM = [[LinkMenController alloc] init];
    
    [self.navigationController pushViewController:linkM animated:YES];
    
    
    
    
}


@end
